package com.example.dc.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Reply {
    private Integer id;
    private Integer questionId;
    private String content;
    private Integer userId;
    private LocalDateTime createTime;
    private String userAttribute;

    public Reply(int questionId, String content, int userId) {
        this.questionId = questionId;
        this.content = content;
        this.userId = userId;
    }
}
